package expression;

import java.util.regex.Pattern;

/**
 * Created by jianweilin on 16/8/19.
 */
public class SimpleDemo {
    public static void main(String[] args) {
        // 按指定模式在字符串查找
//        String line = "This order was placed for QT3000! OK?";
//        String pattern = "\\d+";
//
//        // 创建 Pattern 对象
//        Pattern r = Pattern.compile(pattern);
//
//        // 现在创建 matcher 对象
//        Matcher m = r.matcher(line);
        Pattern.matches("\\d+","123456");

    }
}
